**************************************************************
*If you want to replicate the results of the paper, start by 
*changing "your_root" to the location of the Replication Files 
*folder in your local directory. Then hit "Execute".
**************************************************************
 
*STATA VERSION 16
*Install the following ado-files
ssc install cmogram, replace
ssc install estout, replace
ssc install parmest, replace

global directory "your_directory"
cd "$directory"

global dofile "$directory/Do_Files"
global data "$directory/Data"
global results "$directory/Tables_Figures"

clear all
cls 

*Tables 1 - 4:

*Table 1:
*Panel A (Wage IV):
do "$dofile/Table 1-Baseline.do"

*Table 2:
*Panel A (Wage IV):
do "$dofile/Table 2-Robustness.do"

*Table 3:
do "$dofile/Table 3-Ties.do"

*Table 4:
do "$dofile/Table 4-Dynamics.do"

*Figures 1 - 4:

*Figure 1:
*Panel A (Wage IV):
do "$dofile/Figure 1.do"

*Figure 2:
*run Figure2.tex (LaTeX) located in $directory/Tables&Figures

*Figure 3:
do "$dofile/Figure 3.do"

*Figure 4:
do "$dofile/Figure 4.do"

